/*
 * Copyright (c) 2015. For Intelligent Group.
 */

package com.intelligent.ispc.core.repository.jpa;

import com.intelligent.ispc.core.entity.User;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by Peter.Li on 2015/10/9.
 */
public interface UserDao extends PagingAndSortingRepository<User, Long>, JpaSpecificationExecutor<User> {

	User findById(Long id);

	User findByName(String name);

	User findByLoginName(String loginName);
}
